/**
 * 
 */
package client;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import example.business.api.conf.ConfKey;
import example.business.api.conf.services.ConfService;

/**
 * @author shipeng
 *
 */
public class MainApp {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath*:/META-INF/services/business-services.xml");

    applicationContext.start();

    ConfService confService = applicationContext.getBean(ConfService.class);

    System.out.println(confService.getValue(ConfKey.SMS_Username));
    try {
      System.in.read();
    } catch (IOException e) {
      e.printStackTrace();
    }

    applicationContext.close();
  }

}
